﻿using Windows.SeedWork;

namespace Windows.WorkFlow.Domain
{
    public class Execution : Entity
    {
        public Execution() 
        {
            Tasks = new HashSet<Task>();
        }
        public long? PId { get; set; }
        /// <summary>
        /// 节点Id
        /// </summary>
        public string NodeId { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeName { get; set; } = "";
        /// <summary>
        /// 节点类型
        /// </summary>
        public string NodeType { get; set; } = "";
        public DateTime StartOn { get; set; } = DateTime.Now;
        public DateTime? EndOn { get; set; }
        public long FlowInstanceId { get; set; }
        public virtual FlowInstance? FlowInstance { get; set; }
        public virtual ICollection<Task> Tasks { get; set;}
    }
}
